package tmproject.hlhj.fhp.tmvote.beans;

import java.util.List;

/**
 * Created by Never Fear   on 2018\8\6 0006.
 * Never More....
 */

public class VotingBean {

    /**
     * code : 200
     * message : 获取成功
     * data : {"activity_id":6,"title":"假的评选","activity_cover":null,"enroll_start":"2018-08-07","enroll_end":"2018-08-08","start_time":"2018-08-13","end_time":"2018-08-20","entry_fee":"0.00","enroll_check":1,"ballot_way":0,"ballot_number":10,"rule":["1、 积分规则：凡持中百集团会员卡的用户，均可参加会员积分活动。会员持卡在中百仓储超市有限公司、中百超市有限公司、中百百货有限责任公司和中百电子商务有限公司消费，每消费1元积1分。","2、 查分方法：登陆本网站后，进入的\u201c我的中百\u201d或\u201c积分商城\u201d，即可以自助服务中查到自己的积分、积点情况，以及相关明细。","3、 积分的使用：会员积分可在网站积分商城兑换相应的礼品、参加网站的会员积分系列活动，也可按照1000积分兑换3个积点的比例转化为积点进行消费。"],"state":"进行中","user":{"user_id":15,"ballot":10,"last_time":"2018-08-13"}}
     */

    private int code;
    private String message;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * activity_id : 6
         * title : 假的评选
         * activity_cover : null
         * enroll_start : 2018-08-07
         * enroll_end : 2018-08-08
         * start_time : 2018-08-13
         * end_time : 2018-08-20
         * entry_fee : 0.00
         * enroll_check : 1
         * ballot_way : 0
         * ballot_number : 10
         * rule : ["1、 积分规则：凡持中百集团会员卡的用户，均可参加会员积分活动。会员持卡在中百仓储超市有限公司、中百超市有限公司、中百百货有限责任公司和中百电子商务有限公司消费，每消费1元积1分。","2、 查分方法：登陆本网站后，进入的\u201c我的中百\u201d或\u201c积分商城\u201d，即可以自助服务中查到自己的积分、积点情况，以及相关明细。","3、 积分的使用：会员积分可在网站积分商城兑换相应的礼品、参加网站的会员积分系列活动，也可按照1000积分兑换3个积点的比例转化为积点进行消费。"]
         * state : 进行中
         * user : {"user_id":15,"ballot":10,"last_time":"2018-08-13"}
         */

        private int activity_id;
        private String title;
        private Object activity_cover;
        private String enroll_start;
        private String enroll_end;
        private String start_time;
        private String end_time;
        private String entry_fee;
        private int enroll_check;
        private int ballot_way;
        private int ballot_number;
        private String state;
        private UserBean user;
        private List<String> rule;
        private List<String> enroll_rule;
        private int is_enroll;

        public List<String> getEnroll_rule() {
            return enroll_rule;
        }

        public void setEnroll_rule(List<String> enroll_rule) {
            this.enroll_rule = enroll_rule;
        }

        public int getIs_enroll() {
            return is_enroll;
        }

        public void setIs_enroll(int is_enroll) {
            this.is_enroll = is_enroll;
        }

        public int getActivity_id() {
            return activity_id;
        }

        public void setActivity_id(int activity_id) {
            this.activity_id = activity_id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public Object getActivity_cover() {
            return activity_cover;
        }

        public void setActivity_cover(Object activity_cover) {
            this.activity_cover = activity_cover;
        }

        public String getEnroll_start() {
            return enroll_start;
        }

        public void setEnroll_start(String enroll_start) {
            this.enroll_start = enroll_start;
        }

        public String getEnroll_end() {
            return enroll_end;
        }

        public void setEnroll_end(String enroll_end) {
            this.enroll_end = enroll_end;
        }

        public String getStart_time() {
            return start_time;
        }

        public void setStart_time(String start_time) {
            this.start_time = start_time;
        }

        public String getEnd_time() {
            return end_time;
        }

        public void setEnd_time(String end_time) {
            this.end_time = end_time;
        }

        public String getEntry_fee() {
            return entry_fee;
        }

        public void setEntry_fee(String entry_fee) {
            this.entry_fee = entry_fee;
        }

        public int getEnroll_check() {
            return enroll_check;
        }

        public void setEnroll_check(int enroll_check) {
            this.enroll_check = enroll_check;
        }

        public int getBallot_way() {
            return ballot_way;
        }

        public void setBallot_way(int ballot_way) {
            this.ballot_way = ballot_way;
        }

        public int getBallot_number() {
            return ballot_number;
        }

        public void setBallot_number(int ballot_number) {
            this.ballot_number = ballot_number;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public UserBean getUser() {
            return user;
        }

        public void setUser(UserBean user) {
            this.user = user;
        }

        public List<String> getRule() {
            return rule;
        }

        public void setRule(List<String> rule) {
            this.rule = rule;
        }

        public static class UserBean {
            /**
             * user_id : 15
             * ballot : 10
             * last_time : 2018-08-13
             */

            private int user_id;
            private int ballot;
            private String last_time;

            public int getUser_id() {
                return user_id;
            }

            public void setUser_id(int user_id) {
                this.user_id = user_id;
            }

            public int getBallot() {
                return ballot;
            }

            public void setBallot(int ballot) {
                this.ballot = ballot;
            }

            public String getLast_time() {
                return last_time;
            }

            public void setLast_time(String last_time) {
                this.last_time = last_time;
            }
        }
    }
}
